import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import http from '@/utils/request'
import { message } from '@/utils/message'
import store from '@/store'

Vue.config.productionTip = false

Vue.prototype.$http = http  // this.$http()
Vue.prototype.$msg = message

// 定义全局过滤器
Vue.filter('formatNum', (value) => {
  return "¥" + Number(value).toFixed(2);
})

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})
app.$mount()
